const path = require('path')
const resolve = dir => {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: './',
  chainWebpack: config => {
    config.resolve.alias
      .set('_c', resolve('src/components')) // key,value自行定义，比如.set('@@', resolve('src/components'))
  },
  devServer:{
    proxy: {
      '/rest': {
        target: 'http://172.19.88.22:10105',
        // target: 'http://192.168.10.119:9092',
        // target: 'https://www.onehall.cn',
        ws: false,
       // changeOrigin: true
      }
    }
  }
}